const timeout = {
  state: {
    msgHeartBeat: null,
    chatHeartBeat: null
  },
  mutations: {
    SET_MSG_HEART_BEAT: (state, msgHeartBeat) => {
      state.msgHeartBeat = msgHeartBeat;
    },
    SET_CHAT_HEART_BEAT: (state, chatHeartBeat) => {
      state.chatHeartBeat = chatHeartBeat;
    },
  },
  actions: {
    SetMsgHeartBeat({ commit }, msgHeartBeat){
      commit('SET_MSG_HEART_BEAT', msgHeartBeat);
    },
    SetChatHeartBeat({ commit }, chatHeartBeat){
      commit('SET_CHAT_HEART_BEAT', chatHeartBeat);
    }
  }
};

export default timeout;